<!DOCTYPE html>
<html class="no-js" lang="">
    <head>
        <meta charset="utf-8">
        <meta http-equiv="x-ua-compatible" content="ie=edge">
        <title>No JS Demo</title>
        <meta name="description" content="">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet">
        <style type="text/css">
            /* CSS styles */
        /* Example by Antoni Putra at https://codepen.io/antoniputra/pen/BzyWmb */

        .menu {
            display: block;
            z-index: 999999;
        }
        .menu li {
            display: inline-block;
            position: relative;
        }
        .menu li.dropdown:hover > .submenu {
            display: block;
        }
        .menu li a {
            display: block;
            padding: 12px 8px;
            background: #ccc;
        }
        .menu li.dropdown > a::after {
            content: "\e259";
            font-family: 'Glyphicons Halflings';
            font-style: normal;
            font-weight: 400;
            margin-left: 8px;
            font-size: 10px;
        }
        .menu li a::before {
            content: "\e179";
            font-family: 'Glyphicons Halflings';
            font-style: normal;
            font-weight: 400;
            margin-right: 8px;
        }
        .menu li a:hover {
            background: rgb(200, 198, 198);
        }

        .menu .submenu {
            display: none;
        }
        .submenu {
            margin: 0px;
            padding: 0px;
            position: absolute;
            left: 0px;
            list-style-type: none;
            display: block;
            width: 200px;
            z-index: 9;
        }
        .submenu li {
            display: block;
        }
        .submenu li a {
            display: block;
            background: #999;
            color: #fff;
            padding: 8px 6px;
            margin-bottom: 1px;
        }
        .menu .submenu > li.dropdown:hover > .submenu {
            display: block;
        }

        .menu .submenu .submenu {
            position: absolute;
            left: 200px;
            top: 0px;
        }

        .submenu li.dropdown > a:after {
            content: "\e258";
            font-family: 'Glyphicons Halflings';
            font-style: normal;
            font-weight: 400;
            margin-left: 8px;
            font-size: 10px;
        }
        @media (min-width: 500px){
            body{
                width: 80%;
            }
            .menu{
                width: 50%;
            }
        }
        @media (min-width: 800px){
            body{
                width: 90%;
            }
            .menu{
                width: 70%;
            }
        }
        *,
*::after,
*::before{
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

.html{
    font-size: 62.5%;
}

.navbar input[type="checkbox"],
.navbar .hamburger-lines{
    display: none;
}

.container{
    max-width: 1200px;
    width: 90%;
    margin: auto;
}

.navbar{
    box-shadow: 0px 5px 10px 0px #aaa;
    position: fixed;
    width: 100%;
    background: #fff;
    color: #000;
    opacity: 0.85;
    z-index: 100;
}

.navbar-container{
    display: flex;
    justify-content: space-between;
    height: 64px;
    align-items: center;
}

.menu-items{
    order: 2;
    display: flex;
}
.logo{
    order: 1;
    font-size: 2.3rem;
}

.menu-items li{
    list-style: none;
    margin-left: 1.5rem;
    font-size: 1.3rem;
}

.navbar a{
    color: #444;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease-in-out;
}

.navbar a:hover{
    color: #117964;
}

@media (max-width: 768px){
    .navbar{
        opacity: 0.95;
    }

    .navbar-container input[type="checkbox"],
    .navbar-container .hamburger-lines{
        display: block;
    }

    .navbar-container{
        display: block;
        position: relative;
        height: 64px;
    }

    .navbar-container input[type="checkbox"]{
        position: absolute;
        display: block;
        height: 32px;
        width: 30px;
        top: 20px;
        left: 20px;
        z-index: 5;
        opacity: 0;
        cursor: pointer;
    }

    .navbar-container .hamburger-lines{
        display: block;
        height: 28px;
        width: 35px;
        position: absolute;
        top: 20px;
        left: 20px;
        z-index: 2;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .navbar-container .hamburger-lines .line{
        display: block;
        height: 4px;
        width: 100%;
        border-radius: 10px;
        background: #333;
    }
    
    .navbar-container .hamburger-lines .line1{
        transform-origin: 0% 0%;
        transition: transform 0.3s ease-in-out;
    }

    .navbar-container .hamburger-lines .line2{
        transition: transform 0.2s ease-in-out;
    }

    .navbar-container .hamburger-lines .line3{
        transform-origin: 0% 100%;
        transition: transform 0.3s ease-in-out;
    }

    .navbar .menu-items{
        padding-top: 100px;
        background: #fff;
        height: 100vh;
        max-width: 300px;
        transform: translate(-150%);
        display: flex;
        flex-direction: column;
        margin-left: -40px;
        padding-left: 40px;
        transition: transform 0.5s ease-in-out;
        box-shadow:  5px 0px 10px 0px #aaa;
        overflow: scroll;
    }

    .navbar .menu-items li{
        margin-bottom: 1.8rem;
        font-size: 1.1rem;
        font-weight: 500;
    }

    .logo{
        position: absolute;
        top: 10px;
        right: 15px;
        font-size: 2.5rem;
    }

    .navbar-container input[type="checkbox"]:checked ~ .menu-items{
        transform: translateX(0);
    }

    .navbar-container input[type="checkbox"]:checked ~ .hamburger-lines .line1{
        transform: rotate(45deg);
    }

    .navbar-container input[type="checkbox"]:checked ~ .hamburger-lines .line2{
        transform: scaleY(0);
    }

    .navbar-container input[type="checkbox"]:checked ~ .hamburger-lines .line3{
        transform: rotate(-45deg);
    }

}

@media (max-width: 500px){
    .navbar-container input[type="checkbox"]:checked ~ .logo{
        display: none;
    }
}

        </style>

    </head>
    <body style="color: aliceblue;">
        <!--[if lt IE 8]>
        <p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
        <![endif]-->


        <ul class="menu" style="padding: 20px; margin:20px;text-align: center; ">
            <li><a href="">Home</a></li>
            <li class="dropdown">
                <a href="">Service</a>
                <ul class="submenu">
                    <li>
                        <a href="">satu</a>
                    </li>      
                    <li class="dropdown">
                        <a href="">dua</a>
                        <ul class="submenu">
                            <li class="dropdown">
                                <a href="">jeruh dua</a>
                                <ul class="submenu">
                                    <li>
                                        <a href="">mentok satu</a>
                                    </li>
                                    <li class="dropdown">
                                        <a href="">mentok dua</a>
                                        <ul class="submenu">
                                            <li>
                                                <a href="">njedok prend satu</a>
                                            </li>      
                                            <li>
                                                <a href="">njedok prend dua</a>
                                            </li>
                                            <li>
                                                <a href="">njedok prend tiga</a>
                                            </li>
                                        </ul>
                                    </li>
                                    <li>
                                        <a href="">mentok satu</a>
                                    </li>
                                </ul>
                            </li>
                            <li>
                                <a href="">jeruh satu</a>
                            </li>
                        </ul>
                    </li>
        <nav class="navbar">
            <div class="navbar-container container">
                <input type="checkbox" name="" id="">
                <div class="hamburger-lines">
                    <span class="line line1"></span>
                    <span class="line line2"></span>
                    <span class="line line3"></span>
                </div>
                <ul class="menu-items">
                    <li><a href="#">Home</a></li>
                    <li><a href="#">About</a></li>
                    <li><a href="#">Category</a></li>
                    <li><a href="#">Menu</a></li>
                    <li><a href="#">Testimonial</a></li>
                    <li><a href="#">Contact</a></li>

                </ul>
                <h1 class="logo">Navbar</h1>
            </div>
        </nav>
    </body>
</html>
